import React from 'react';
import { connect } from 'dva';
import { routerRedux } from 'dva/router';
import { List, Icon,TextareaItem } from 'antd-mobile';
import content from '../../../common/contentCss/content.css';
import CustTitle from '../../../common/title/title';
import ContactServiceView from './pages/contactService';

function ContactService({dispatch,loading,contactService}) {

  const { htmlData } = contactService;

  const titleProps = {
    titleName:'联系客服',
    goBack(){
      history.go(-1);
    }
  }

  const contactServiceProps = {
    htmlData
  }

  const MarginHeight = () => <div style={{height: '0.6em', backgroundColor:'#F5F5F9'}}></div>;

  return(
    <div className={content.content} style={{backgroundColor:'#fff'}}>
      <CustTitle {...titleProps}/>
      <div style={{
        marginTop: '2.8125em',
      }}>
      </div>
      <ContactServiceView {...contactServiceProps}/>
    </div>
  )
}

function mapStateToProps(state, ownProps) {
  return {
    contactService: state.contactService
  }
}

export default connect(mapStateToProps)(ContactService);
